package com.itheima.map;

import java.util.*;
import java.util.function.BiConsumer;

public class Demo06 {


    public static void main(String[] args) {
        Map<String, String> map = new HashMap<>();
        map.put("宝强", "马蓉");
        map.put("宋喆", "马蓉");
        map.put("乃亮", "小璐");
        map.put("PGone", "小璐");
        Collection<String> values = map.values();
        System.out.println(values);
        map.forEach(new BiConsumer<String, String>() {
            @Override
            public void accept(String s, String s2) {
                System.out.println(s+"----"+s2);
            }
        });

        map.forEach((k,v)-> System.out.println(k+"==="+v));


    }
}
